import { CSSTransition, SwitchTransition } from "react-transition-group";
import "./style.css";
import type { FC, PropsWithChildren } from "react";
const RightIn: FC<PropsWithChildren> = props => {
  return (
    <SwitchTransition mode="out-in">
      <CSSTransition key={location.pathname} timeout={300} classNames="rightin">
        {props.children}
      </CSSTransition>
    </SwitchTransition>
  );
};

export default RightIn;
